<template>
  <div class="not-found">
    <div class="not-found-content">
      <h1 class="error-code">404</h1>
      <h2 class="error-title">页面不存在</h2>
      <p class="error-description">抱歉，您访问的页面不存在或已被移除。</p>
      <div class="action-buttons">
        <router-link to="/admin/dashboard" class="admin-btn admin-btn-primary">返回首页</router-link>
        <button class="admin-btn" @click="goBack">返回上一页</button>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'NotFound',
  methods: {
    goBack() {
      this.$router.go(-1)
    }
  }
}
</script>

<style scoped>
.not-found {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  padding: 48px 0;
}

.not-found-content {
  max-width: 500px;
}

.error-code {
  font-size: 120px;
  color: #1890ff;
  margin: 0;
  line-height: 1.2;
  margin-bottom: 16px;
  font-weight: 600;
}

.error-title {
  font-size: 24px;
  color: rgba(0, 0, 0, 0.85);
  margin-bottom: 16px;
  font-weight: 500;
}

.error-description {
  font-size: 16px;
  color: rgba(0, 0, 0, 0.45);
  margin-bottom: 24px;
}

.action-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
}
</style> 